package cn.tangsihai.pay.domain;

import cn.tangsihai.basic.domain.BasicDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支付单
 */
@Data
public class PayBill extends BasicDomain {
    // 支付状态
    // 0待支付
    public static final int PAYTYPE_WAIT_PAY = 0;
    // 1已支付
    public static final int PAYTYPE_SUCCESS_PAY = 1;
    // 2未付款交易超时关闭，或支付完成后全额退款。
    public static final int PAYTYPE_FAIL_PAY = 2;
    // 3取消
    public static final int PAYTYPE_CANCEL_PAY = 3;

    // 业务类型
    // 0宠物购买
    public static final int BUSINESSTYPE_PETPAY = 0;
    // 1充值业务
    public static final int BUSINESSTYPE_CHARGE = 1;

    private String digest;
    private BigDecimal money;
    private Integer state;
    private Date lastPayTime;
    private Date createTime;
    private Integer payChannel;
    private Date updateTime;
    private String unionPaySn;
    private Integer businessType;
    private Long businessKey;
    private Long userId;
    private String nickName;
    private String shopName;
    private Long shopId;
}
